package main

import (
	"fmt"
)

func main() {
	 //:= "10"
	ch := make(chan string)

	for i := 0; i < 5000; i++ {
		//go start  a goroutine
		go printHelloWork(i,ch)

	}
	for{
		mag := <-ch
		fmt.Println(mag)
	}

}
func printHelloWork(i int,ch chan string) {
	for{
		ch <- fmt.Sprintf("Hello World ! %d \n",i)

	}
}
